﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewEntryCreator.ascx.cs" Inherits="WebUserControl" %>
<%@ Register assembly="DayPilot" namespace="DayPilot.Web.Ui" tagprefix="DayPilot" %>
<%@  Register TagPrefix="ew"   Namespace="eWorld.UI.Compatibility"  Assembly="eWorld.UI.Compatibility"  %>

<style type="text/css">
       
        td, p
        {
            font: Tahoma;
            font-size: small;
           
           
        }
        tr, table
        {
            font: Tahoma;
            font-size: small;
            border: solid 1px #CCCCCC;
        }

    .style1
    {
        width: 210px;
        font: Tahoma;
            font-size: small;
    }
  
    .style2
    {
        width: 400px;
        font: Tahoma;
            font-size: small;
    }
</style>

    <body style="font-family: Tahoma">

    <table style="width:568px; font-size: x-small;">
        <tr>
            <td class="style5">
    
        <table style="width: 100%; height: 347px;" border="solid 3px black">
            <tr>
                <td class="style1">
                    Client ID Number<asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                        runat="server" ControlToValidate="cIDTextBox" 
                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                </td>
                <td class="style2">
                    <asp:TextBox ID="cIDTextBox" runat="server" Width="33%" 
                        ontextchanged="TextBox2_TextChanged"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Instructions<asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                        runat="server" ControlToValidate="NoteTextBox" 
                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                </td>
                <td class="style2">
                    <asp:TextBox ID="NoteTextBox" runat="server" Rows="5" TextMode="MultiLine" 
                        Width="100%" ontextchanged="NoteTextBox_TextChanged"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Start Time<asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
                        runat="server" ControlToValidate="tpDemo1" 
                        ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                </td>
                <td class="style2">
                    <ew:TimePicker runat="server" id="tpDemo1" ControlDisplay="LabelButton" 
                        Scrollable="True" NumberOfColumns="4" PopupWidth="247px" PopupHeight="152px" 
                        MinuteInterval="FifteenMinutes" SelectedTime="07/08/2009 08:00:00"
                        CommandName="StartTimeChanged" AutoPostBack="True" >
                        <textboxlabelstyle font-size="Medium" />
                        
                      <TimeStyle BackColor="DarkBlue" ForeColor="AliceBlue" />
                      <SelectedTimeStyle BackColor="LightSteelBlue" ForeColor="AliceBlue" />
                    </ew:TimePicker>
                    
                </td>
            </tr>
            <tr>
                <td class="style1">
                    End Time<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="tpDemo2" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
                </td>
                <td class="style2">
                    <ew:TimePicker runat="server" id="tpDemo2" ControlDisplay="LabelButton" 
                        Scrollable="True" NumberOfColumns="4" PopupWidth="247px" PopupHeight="152px" 
                        MinuteInterval="15" SelectedTime="07/08/2009 10:00:00" 
                        CommandName="EndTimeChanged" onclientchange="EndTimeChanged">
                        
                      <SelectedTimeStyle BackColor="LightSteelBlue" ForeColor="AliceBlue" />
                        <buttonstyle font-size="X-Small" />
                        <textboxlabelstyle font-size="Medium" />
                        <timestyle backcolor="DarkBlue" forecolor="AliceBlue" />
                    </ew:TimePicker>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    StartDate</td>
                <td class="style2">
                    <asp:Calendar ID="StartCal" runat="server" Font-Size="X-Small" Width="75%" 
                        style="font-size: x-small" onselectionchanged="Calendar2_SelectionChanged"></asp:Calendar>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Recurrence</td>
                <td class="style2">
                    <asp:CheckBox ID="CheckBox4" runat="server" Text="Daily" 
                        oncheckedchanged="CheckBox4_CheckedChanged" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="CheckBox5" runat="server" Text="Weekly" />
                    &nbsp; &nbsp;&nbsp;
                    <asp:CheckBox ID="CheckBox6" runat="server" Text="Monthly" />
                </td>
            </tr>
       </table>
                
                <br />
                
            <table>
                
                <tr>
                    <td class="style1">
                        Weekly Recurrence</td>
                    <td class="style2">
                        <asp:CheckBoxList ID="CheckBoxList2" runat="server" 
                            onselectedindexchanged="CheckBoxList2_SelectedIndexChanged" RepeatColumns="4" 
                            RepeatDirection="Horizontal" Width="100%">
                            <asp:ListItem>Mon</asp:ListItem>
                            <asp:ListItem>Tue</asp:ListItem>
                            <asp:ListItem>Wed</asp:ListItem>
                            <asp:ListItem>Thu</asp:ListItem>
                            <asp:ListItem>Fri</asp:ListItem>
                            <asp:ListItem>Sat</asp:ListItem>
                            <asp:ListItem>Sun</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                </tr>
                
            
          
                <tr>
                    <td class="style1">
                        Monthly Recurrence</td>
                    <td class="style2">
                        <asp:Label ID="Label1" runat="server" 
                            Text="Days of the Month (seperate with commas 'dd,dd,dd'):"></asp:Label>
                        <br />
                        <asp:TextBox ID="TextBox9" runat="server" Width="100%" 
                            ontextchanged="TextBox9_TextChanged"></asp:TextBox>
                    </td>
                </tr>
            
                <tr>
                    <td ID="RecurText" class="style1">
                        End Recurrence Date</td>
                    <td class="style2">
                        <asp:Calendar ID="EndCal" runat="server" Font-Size="X-Small" Width="75%" 
                            onselectionchanged="Calendar3_SelectionChanged">
                        </asp:Calendar>
                    </td>
                </tr>
            </table>
             
       <br />
    

    <asp:Button ID="Button1" runat="server" Text="Add Event" Width="99%" 
                    onclick="Button1_Click" Height="40px" />
    <br />

    
       </tr>
    </table>
    <br />

